package org.ace.dao;

import org.ace.model.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate4.HibernateTemplate;
import org.springframework.stereotype.Repository;

/**
 *
 * Created by SunQiPeng on 2016/6/16.
 */
@Repository
public class PersonDao {
    @Autowired
    private HibernateTemplate hibernateTemplate;

    public void save(Person person){
        hibernateTemplate.save(person);
    }

    public void delete(Person person){
        hibernateTemplate.delete(person);
    }
}
